﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace USMCdotNET
{
    /// <summary>
    /// Исключение, вызываемое при ошибке во время прохода какого-либо участка маршрута
    /// </summary>
    class DeviceMovementException:Exception
    {
        IPathElement element;
        public IPathElement ErrorElement { get { return element; } }
        public DeviceMovementException(IPathElement element)
        {
            this.element = element;
        }
        public DeviceMovementException()
        { }
        public DeviceMovementException(IPathElement element, string message)
            : base(message)
        {
            this.element = element;
        }
        public DeviceMovementException(IPathElement element, string message, Exception inner)
            : base(message, inner)
        {
            this.element = element;
        }
    }
}
